home *** CD-ROM | disk | FTP | other *** search
/ Loadstar 18 / 018.d81 / aug playnotes-1 < prev    next >
Text File  |  2022-08-26  |  4KB  |  256 lines

  1.  
  2.   COMAL PlayNET Notes - August, 1985
  3.   ===== ======= =====   ======= ====
  4.  
  5.   Notes taken by:  Joel Ellis Rea
  6.            (alias "Joel R" on PlayNET)
  7.  
  8.  
  9. --------------- Aug 01 ---------------
  10.  
  11.     Paul W asked how to send block
  12.  
  13. commands to the disk drive.  Here's
  14.  
  15. how:  Before you can use the
  16.  
  17. "BLOCK-READ", "BLOCK-WRITE",
  18.  
  19. "BUFFER-POINTER", "USER-1" or "USER-2"
  20.  
  21. commands documented in the 1541 User's
  22.  
  23. Guide, you must open a disk drive buf-
  24.  
  25. fer as a file.  Before you can use ANY
  26.  
  27. direct-access commands, you must open
  28.  
  29. the 1541's command/error channel.  The
  30.  
  31. means for doing this varies between
  32.  
  33. the two Commodore 64 COMAL versions.
  34.  
  35. In COMAL 0.14, do this:
  36.  
  37.  
  38.    OPEN FILE 15,"",UNIT 8,15 //command
  39.    OPEN FILE 8,"#",UNIT 8,8 //buffer
  40.  
  41.  
  42. In COMAL 2.0, do this:
  43.  
  44.  
  45.    OPEN FILE 15,"u8:/s15/d-" //command
  46.    OPEN FILE 8,"u8:#/s8/d-" //buffer
  47.  
  48.  
  49. In either version, you may now send
  50.  
  51. direct access commands by using the
  52.  
  53. "PRINT FILE 15:" command.  Example:
  54.  
  55. to read Track 18, Block 1 (the first
  56.  
  57. block of the directory), you would do
  58.  
  59. this:
  60.  
  61.  
  62.    PRINT FILE 15:"u1:8 0 18 1"
  63.  
  64.  
  65. You can then use the Buffer-Pointer
  66.  
  67. ("B-P") command to position the buffer
  68.  
  69. pointer, then use GET$(8,n) (in 2.0)
  70.  
  71. or the published "DISK'GET" PROCedure
  72.  
  73. in 0.14 to get the desired bytes from
  74.  
  75. the buffer.  Simply execute a CLOSE
  76.  
  77. statement to close the files when you
  78.  
  79. are done.
  80.  
  81.  
  82.    Terry B1 wanted to know how to put
  83.  
  84. text and graphics on the screen at the
  85.  
  86. same time.  There are 2 ways:  Use
  87.  
  88. "SPLITSCREEN" to present a small text
  89.  
  90. window at the top of the hi-res
  91.  
  92. graphics screen (does not work in
  93.  
  94. multi-color graphics!), or  Use the
  95.  
  96. "TEXTSTYLE" (2.0 only) and "PLOTTEXT"
  97.  
  98. commands, which draw text directly on
  99.  
  100. the graphics screen!
  101.  
  102.  
  103.  
  104.     There was lots of talk on the
  105.  
  106. recent MARCA Fair and Borge
  107.  
  108. Christensen's (yep, the founder of
  109.  
  110. COMAL himself) HIDE and REVEAL
  111.  
  112. routines for 2.0, which allow placing
  113.  
  114. invisible PROCedures and FUNCtions
  115.  
  116. into a 2.0 program -- they can be
  117.  
  118. accessed, but not LISTed, DISPLAYed
  119.  
  120. or EDITed!  These routines will be
  121.  
  122. published in COMAL Today #9.
  123.  
  124.  
  125.     Captain Comal says work on a
  126.  
  127. standard COMAL Graphics Kernal is
  128.  
  129. underway.
  130.  
  131.  
  132.     The first airport in Scandinavia
  133.  
  134. to achieve the ZERO Visibility
  135.  
  136. Landing Rating uses C64's running
  137.  
  138. COMAL in the control tower!  The
  139.  
  140. program they use was written by Air
  141.  
  142. Traffic Controllers instead of
  143.  
  144. professional programmers.
  145.  
  146.  
  147.     Here's a tip from the Captain:
  148.  
  149. You can leave off the "$" from a
  150.  
  151. string function name (such as CHR$,
  152.  
  153. STATUS$ and SPC$) when typing in a
  154.  
  155. program, and COMAL will supply it for
  156.  
  157. you, much as it supplies closing
  158.  
  159. quotes at the end of a line, "DO" and
  160.  
  161. "THEN" keywords, the names of PROC's,
  162.  
  163. FUNC's and FOR index variables on the
  164.  
  165. respective "END..." statements, etc.
  166.  
  167.  
  168.    I told Cap at this point about Data
  169.  
  170. Encore's InterSystem Formatting Tech-
  171.  
  172. nology, which allows multiple formats
  173.  
  174. (IBM-PC and 1541, for example) on the
  175.  
  176. same side of the same disk.  Needless
  177.  
  178. to say, he was excited.  Now that IBM
  179.  
  180. users have COMAL, being able to put
  181.  
  182. out single disks for both computers
  183.  
  184. would be a boon to CUGUSA!
  185.  
  186.  
  187. --------------- Aug 08 ---------------
  188.  
  189.     Steve K has already used an
  190.  
  191. APPLICATION written in PC-COMAL!
  192.  
  193. Caption  Comal, Steve K and I
  194.  
  195. discussed PC-COMAL and MS-DOS. You
  196.  
  197. can PASS an MS-DOS command from
  198.  
  199. COMAL, much like you can PASS a 1541
  200.  
  201. DOS command from C64-COMAL!  You can
  202.  
  203. even run PC-COMAL inside itself!
  204.  
  205.  
  206.    There was more talk on Jesse K's
  207.  
  208. "Quick Chip", which speeds up LOADs
  209.  
  210. from COMAL 2.0 by a factor of up to 5.
  211.  
  212.  
  213.     Jim V asked about the "ANIMATE"
  214.  
  215. PROCedure of COMAL 2.0's "SPRITE"
  216.  
  217. package.
  218.  
  219.  
  220.     Due to a PlayNet "overload",
  221.  
  222. Captain C and some others got
  223.  
  224. "dumped".  This started talk about
  225.  
  226. moving COMAL meetings to an alternate
  227.  
  228. service, either PeopleLink or Quantum-
  229.  
  230. Link.
  231.  
  232.  
  233.     Jim V wants to write an Authoring
  234.  
  235. System in COMAL, similar to PILOT.  He
  236.  
  237. calls it "FRAME".
  238.  
  239.  
  240.     Lots of beginners like Jeff E
  241.  
  242. were on.  We decided to have a
  243.  
  244. "Beginning COMAL" room run sim-
  245.  
  246. ultaneously with the main COMAL room,
  247.  
  248. leaving the main room for "Techies".
  249.  
  250. Captain C will alternate which room
  251.  
  252. he moderates each week.
  253.  
  254.  
  255. ====== Continued in Next Article =====
  256.